import ArticleList from '../views/ArticleList'
// import ArticleDetail from '../views/AricleDetail'
import Boiling from '../views/Boiling'
import Topic from '../views/Topic'
import Home from '../views/Home'

const routes = [
  {
    path: '/',
    component: Home,
    exact: true,
    meta: '首页',
    // children: [
    //   {
    //     path: '/articleList/',
    //     component: ArticleList,
    //     meta: '文章列表'
    //   },
    //   {
    //     path: '/articleDetail',
    //     component: ArticleDetail,
    //     meta: '文章详情'
    //   }
    // ]
    children: [
      {
        path: '/',
        exact: true,
        component: ""
      },
      {
        path: '/:category',
        component: ArticleList
      }
    ]
  },
  {
    path: '/boiling',
    component: Boiling,
    meta: '沸点'
  },
  {
    path: '/topic',
    component: Topic,
    meta: '话题'
  },
  {
    path: '/ce',
    component: LittleCe,
    meta: '小测'
  },
  {
    path: '/activity',
    component: Activity,
    meta: '活动'
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/register',
    component: Register
  }
]

export default routes